bugfix and removing fancybox