Handle clicks on bars.