added controller update on state change