added different cases for profile viewing