implemented adding and deleting items