fixes to lightbox and add loading icon