model editing and getId funct