improved single click / double click handling