save selected variables to application state.