Make the refresh button work.