create open portal tab function