Cleaned up history views, with many bug-fixing side-effects.
Most prominently, the add/cancel button now stays in sync with the state of the add-form.