finish main UI