function to display notes