View logic working for user profile page