Compleated the navigation of the pages