Hash value updates properly on link click