redefine removeChild to clean up layers