More refresh code (start some work on the history tab).