added primary key to hidden field and and id set