added includes for header, footer etc, and make sidebar elements conditional according to the page