Change layoutReady callback to take a node rather than a layout