trigger event for last clicked