fixing issue with close fancybox dialog