refactor profile edit form