adding navbar to global template, and tweaking template loading so embedded php is executed instead of ignored