Primitive single page application handler