added a spinning animation when the refresh button is clicked