Standardise view declaration position

This makes is easier to locate templates
Cope with job failure in the UI