Added support for enable/disable of sidebar and panels