I am trying to make something that needs to add and delete text boxes, rectangles, and lines on the fly with buttons, is there a way to create, delete, and check if any are missing on the fly?

(Also, is there a way to send to back/bring to front through code?)