fix popup blockers issue #17