PLFENG-2413: clean up NoteUI source code