Optimization for click listener