profile view refactoring to be more readable. ref #13