added delete operation and added UI updates after add/delete