gui: Correct handling of non-matching buffers

There always needs to be some kind of buffer
gui: Go to instruction when reference item is clicked on

Some refactoring to go with that.