updating lightbox and mail functionality