fixed bug, and added new and delete items