close popup on click outside
improved styles