add clicking to bar graphs