Integrated new panel with main class