changed multi page app to single page application