Handling page loaded with hash