ipmanager: some beautiful code
ipmanager: fix an unclosed popup