switch to states mode