refresh view when resource is changed
refresh view when resource is changed