add mediator and send refresh event throgh it
fix #22