Cleaned up view templates
Added support for date range queries