Solved by SimonW in post #2 
              
              
                you have to replace them. for things like view, you can use a custom module. 
it’s also worth noting that .children() might not give you the correct execution order.