Update mainPanel