Added page ordering and dynamic navbar generation