clean up failed dialog code and comments
fix /etc/hosts duplication bug