added cardlayout panel class