finish main ui