Setting up the single page framework