0492: usage of setModeState function for better control of state change