changed the event to clicked