getting xmlhttprequest errors for add items, add stock is not implemented yet