Changed main frame layout.