renamed $method and $methodName variables to $actionName