Reset scroll position before refreshing elements