Added dialog box when deleting a note