Fixed the refresh button not doing anything