setup for single page app