trigger 'time' events after every state change