Modal dialog now shown between view transitions.

- fixed issue where controller code was being executed twice
- assorted improvements