updates url as you type