implented basic profile viewing