output shown when state changes