only trigger local storage on focus