some changes to refresh view