Implemented in memory history collection as a prerequisite for
implementing undo/redo and jump back/foward
fixed bug with jump element by making sure the document is selected first
before selecting an object when clicking on it.