Rename renderElements to initialize