optimized mouse clicking