fixed issue where panels weren't aligned by making have a CardLayout