fixed page rendering issue by checking for a window.location.hash on page load