update UI and main