imlemented refresh button with progress spinner