Added UI support for query by time period