added the flexible path to the page template