moved data from view to ctrl