Implemented clicking around the history tree; broke some other stuff