update panel layout