Added refresh button functionality