Hide settings on any click outside it when open