Improved history mechanism

Outline clicks now also add an entry to the history