sidebar changes and custom header

fixes a buncha bugs