A bunch of little fixes for the sidebar