Improved initial (naive) implementation of the relative path navigation.
Pass current document path to the preview window, to allow enable navigation.
Fixed a navigation bug caused by hiding and showing of preview window.