use local storage to keep track of variable for top div