1、removed unuseful code from Controller
2、add a closure parameter to doInit method in FormController class