fancy box code updated