fixed the navbar logic to be dynamic with the addition of new pages. Began fixing the document page logic.