modified source for allowing multiple icon and polygon buttons to exist on a toolbar