created a state controller for the client id and current action