replace demo pages with a single page app