Insert based on parent
Use default structures for insertion
Add confirmation when closing all tabs