Updated function to delete items from a collecton to work with new view