make history scrollbar only appear on overflow