fix bug where dhcp resets to static in ui