Refactoring profile view