adding hook for beforeNavigate, scrolling to top of page after ajax load