Added loading gid for related data in fancybox