Removed const from rendering functions