if (existing != null){
                FragmentManager otherManager = existing.getFragmentManager();
                if (otherManager != null) {
                    FragmentTransaction ft = otherManager.beginTransaction();
                    ft.remove(existing);