refactor profle view