bug fix for hiding side panel when TOC doesn't exist. be able to hide buttons for different views based on config