Refactor user edit page