Fix some problems with sidebar darkening, making page text selectable, also making sidebar retract when clicking anywhere on the page