Move all node creation to the rende function