update panel script.