Improved the history scrolling and made text selectable.