Allow toggles to be closed when clicking anywhere else on the page