Sets state to dev