move out call to $location.path