Wondering if we should define this higher up in the ```$scope``` since we seem to be replicating it in every controller using nutupane.