transformed the app in a single page app