added event for mode switching