update main ui