add click event for 2 bars