@Override
  public void prepareFromRequest(PlaceRequest request) {
    super.prepareFromRequest(request);
    long startTime = System.currentTimeMillis();
    AppClientFactory.printInfoLogger("Entered into NXT Gen start time -- " + startTime);
    if (AppClientFactory.getPlaceManager().refreshPlace()) {
      clearSlot(TYPE_FOLDERS_SLOT);
      setInSlot(TYPE_FOLDERS_SLOT, partnerLibraryPresenter);
      partnerLibraryPresenter.setPartnerWidget();
      AppClientFactory.printInfoLogger(
          "NXT Gen End time -- " + (System.currentTimeMillis() - startTime));
    }
    if (getPlaceManager().getRequestParameter(CALLBACK) != null
        && getPlaceManager().getRequestParameter(CALLBACK).equalsIgnoreCase("signup")) {
      // To show SignUp (Registration popup)
      if (AppClientFactory.isAnonymous()) {
        Window.enableScrolling(false);
        AppClientFactory.fireEvent(new SetHeaderZIndexEvent(98, false));
        String type = getPlaceManager().getRequestParameter("type");
        int displayScreen =
            getPlaceManager().getRequestParameter("type") != null ? Integer.parseInt(type) : 1;
        signUpViewPresenter.displayPopup(displayScreen);
        addToPopupSlot(signUpViewPresenter);
      }
    }

    int flag = AppClientFactory.getLoggedInUser().getViewFlag();
    final String loginType =
        AppClientFactory.getLoggedInUser().getLoginType() != null
            ? AppClientFactory.getLoggedInUser().getLoginType()
            : "";
    if (!AppClientFactory.isAnonymous() && flag == 0 && !loginType.equalsIgnoreCase("Credential")) {
      AlmostDoneUc update =
          new AlmostDoneUc(
              AppClientFactory.getLoggedInUser().getEmailId(), AppClientFactory.getLoggedInUser());
      update.setGlassEnabled(true);
      update.show();
      update.center();
    }
  }
 @Override
 public void onHide() {
   super.onHide();
   AppClientFactory.getPlaceManager().resetLibraryEventData(PlaceTokens.FINCAPINC);
 }
 @Override
 public void onReset() {
   super.onReset();
 }
 @Override
 public void onReveal() {
   super.onReveal();
   Window.scrollTo(0, 0);
 }
 @Override
 public void onBind() {
   super.onBind();
 }
 @Override
 public void onBind() {
   super.onBind();
   Window.scrollTo(0, 0);
 }