adjusting click logic