changed method to clickOnBar