allow history scrolling

This is either the best or worst thing I've ever done. It's not perfect so expect bugs.