set window.t before loading the views

so that we can use it inside of view properties (see dialog_view.js)
make .clickCatcher globally available
add dialog view