save default.host when apply butto clicked