fixing active button bug on events button
auto updating of events data