cleanup setting of state in controller