turn multi-page app into single page app