Added click outside to close options panel.