updates logic for lightbox content