Adds id to item array for edit action