update the appstate module