move refresh to background script