call onDestroy() on each page when clearing a tab