socket io when updating a model