fires events when showing and hiding modules