Hide collapsible settings on document click