pathDecider is used to redirect related path by looking up the data in response
pathDecider(client_cmd, $scope, data);