Implemented delete note UI behavior.