added delete method and todos