@Override
  public void onClick(View v) {
    // TODO Auto-generated method stub
    if (v instanceof FrameLayout) {
      // deselect
      String url = (String) v.getTag();
      MediaModel model = null;
      if (mCurrentSelectedImages != null) {
        for (MediaModel m : mCurrentSelectedImages) {
          if (m.url.equals(url)) {
            model = m;
            break;
          }
        }
      }
      if (model == null && mCurrentSelectedVideos != null) {
        for (MediaModel m : mCurrentSelectedVideos) {
          if (m.url.equals(url)) {
            model = m;
            break;
          }
        }
      }
      if (model != null) {
        if (model.isVideo()) {
          mCurrentSelectedVideos.remove(model);
          mVideoFragment.unselect(model);
          onVideoSelectedCount(mCurrentSelectedVideos.size());
          onVideoUnselected(model);

        } else {
          mCurrentSelectedImages.remove(model);
          mImageFragment.unselect(model);
          onImageSelectedCount(mCurrentSelectedImages.size());
          onImageUnselected(model);
        }
      }
    }
  }