adding navigation functionality to php pages