make clear actually clear the history; fix some listener hookup bugs