update URL pattern and selectors