added example single page app
fixed single page app example