update some ui elements