mainPanel class