order the writings in the notebook view in desc order by created_at
moved the "end" for the code block in the notebook index view outside of the div in order to make the content display correctly on the page.