refactored showNoteView