deciding preview mode or not (preview must ended successfully)