Removed udplicate code for showing user menu