fix lightbox back button behavior