    page('/devices', function () {
      app.route = 'devices';
    });

    page('/apply', function () {
      console.log('APPLY', app.route, window.history);
      window.history.back();
    });

    page('/refresh', function () {
      console.log('REFRESH', app.route);
      window.history.go(-2);
    });

    page('/reset', function () {
      console.log('RESET', app.route);
      window.history.go(-2);
    });

    // add #! before urls
    page({
      hashbang: true
    });

  });
</script>
