fixed navigation issue of checking for hash on first page load