Hooked up the location object in the controller