Write view function for displaying single note