Update additem.html and main.js for edit&display