updates mediator pattern and updates view engine