Object view: fix reference arrow direction.
Some layout changes and close button for windows in object view.