better click detection