bar chart page works now, going to add line chart and need to clean up api controller