close widget when clicked outside + some style fixes