I am unclear what it is that you want. In the sample above, the “InitialLayoutCompleted” DiagramEvent listener could be a “LayoutCompleted” DiagramEvent listener instead, if you want to execute that code after each layout. Normally, a layout will happen after a node or a link has been added or removed.
You can also modify that listener code to position those record nodes where you want them to be.