refactored promises on the add controller and refactored the userfactory and profile page