Prune old data when switching view