Added a dialog which allows users to change time range of graph.