adding lightbox and tooltip code