Added functionality to view user profile