Sorting out the main note view to display the notes.