add masory and fancybox support