Added tabs and legend for graph