update panel during scaling