Implemented main panel.