move this part to tk_controller, due to this method only for tk mode.