delete note dialog works