set node attributes to go into ember. observing the state and handling the state if the user clicks cancel or save