wrapped direction definition of controller in closure and call to function of same name