stats controller and chart