updated lightbox logic, added elasticsearch