set up a single page application