mediator observer and state