Change 'remove' to 'detach'. Don't destroy colorpicker when its window is closed.