Restored panel-main class