started code to refresh when modification

not done