Refactored dashboard widget integration.