implemented the refresh button