clean up html a bit, make sidebar badges work