some small changes to add fancybox