handle refreshes