Created the gui mediator