Render action code automatically