* Added sanity checks to ensure widgets are active before rendering sidebars