routing and templating working on single page