remodelled the app as a SPA