updated SWF and login to be a flow
stored all documents