fix contents margins in mainwindow