Created the main panel.