update header and url