Working refresh button and fixed URL encoding