added button selectors to the line graph and implemented the bar chart