Adaptive Layout for MainWindow