added logic for parsing hashtag from url for page reload