fixed issue #38, bug that caused clicking on popup content to close popup under ajax content type