Dismiss modals by clicking elsewhere on the body

Allow modals to be hidden by clicking elsewhere on the body and not only on the close button