@Override
 public void onDetachedFromWindow() {
   super.onDetachedFromWindow();
   presenter.detachView();
 }
 public void onDetachedFromWindow()
 {
   isDetached = true;
   super.onDetachedFromWindow();
 }