Dynamic navigation

Updated pages_list method, to loop through pages and hightlight the
active page.