added member function updateUrls