after resource change