modified slightly add item tab and fixed parsing bug