update hash instead of using input element to share the link