Analytics, UI, refined ui when there's no data available.
Refactoring, AnalyticsProvider, removed duplicate code.