switching pages in web app with transitions