changed the logic of update command as model signal