fixed broken code. Refactored some code, and chenged the name of the bottons on main .html and additem.html