fixed bug which caused clicking on popup content to close popup if ajax content has many nodes