Added setup for single-page application.