Make visibility of legends configurable. Also fix bottom history css