added states control to hotels and metaagent and minor changes