removing refs to deleted views in urls