Popup now closes on outside div click.