Added location parameter to .controller function