improvements for public_ip widget (See Issue #116)