refactored user edit page