Now using raw dom element contains for click outside condition.