public function bootstrap($app)
{
// delay attaching event handler to the view component after it is fully configured
$app->on(Application::EVENT_BEFORE_REQUEST, function () use($app) {
$app->getView()->on(View::EVENT_END_BODY, [$this, 'renderToolbar']);
});
}