added favicon swapping logic