handle refresh case