add some fixes to fancybox