Auto-save flows

Auto-save flows to avoid progress loss and also avoiding conflict when multiple tabs are open