update sample, be able to insert random values as well as refresh textview