switched to using controllerAs and standardised priorities