update control code