Changeds layout of MainFrame to GridLayout