added loading and refresh button