update remote control code