add check model is dirty