update action and state map