refactored all links to root relative or document root