added date range functionality and graphs