got loading/refreshing to work