Set attributes when network change event occurs