Added toggling of bar and line graph