refactoring profile view-a