make mainPanel visible