add behavior to histogram toolbar