NoteActivity refactor. Added delete task operation.