implementing mediator for sidebar