Update controller to add changeStateOn method