added functionality to display user profile