Fixed ControlPanel script