set id to entity form