refactor daily_comparison view