reduced ui.drawMainScreen complexity