creates delete method and adds confirmation