add upload item and edit existing item