Add a reset_mode_states method to reset the state of all of the modes upon mode change