updates on url change