Handle hash url on initial load