Add click detection