added close when user clicks outside element to lightbox, modal, and dropdown buttons