added confirm message when deleting a file