made the refresh method work!