RemoteControlCode : add timeout setting, fix confirm msgbox and do GUI restart