Added support for hiding panels.