control the id of model