refine tab press to refresh logic