Changed addUrl - adds to the head not the tail only if url is not already there