update UI when manipulating files