move some data binding code from ControllersApi to Controller trait
fix failing tests