update ui for main activity