Added callControllerMethod function