updated profile button logic