refactoring some profile views