editing controller plugin to support anonymous function extension