moves edit user modal functions into edit view