add and remove a child