Register the dashboard event declaratively.