added refresh button functionality