-added boxlayout as the main panel layout