updated mainUI