Add custom classes when panel is present and not