add controller in root view.

add controller in root. It is useful to get controller by view root

MyController mc = (MyController) view.getUserData();