Added functionality for custom time range selection in Trend screen
Refactored trend screen code