refactor IpTitle widget