moved create logic to ctrl.