Use main state change as save button