Added a method "refresh" for refresh data.