get recentClosed every time button is clicked.