back to state mode on load