update UI of MainActivity