perhaps the adding and removing of the class should be triggered by the event.