Cleaned up g containers in renderPie function