Relayout main window to support pantau feature