refactored the profile view into fragments