Updating mediator and module pattern