Changed code of multiple thumbnails; stored the last visited history tab; fixed cookies of cloudflare for different domains