improves click handling for multiple clicks