set up a single page app