Added a mediator for the GUI