Implemented fancybox functionality