events and flag for shown bars