add events before and after router execute