auto refresh on focus