added functions insertChild and removeChild