Changed id to iid (item id) in add, edit and delete functions. Reimplemented populate_obj in all parts now.