added the ability to hide/show panels