main UI finished