updated appendChild, removeChild to properly context