Triggering a dismiss event when clicking on the backdrop