created new route and controller and also capturing time to display data over time