added submodels for state in model in nodescollection. this is used to send commands to server