- handling refresh button click with animation