use input value to construct url