updates title and url