edited the code for urls