Fixed controller to pass a Location object instead of hash