finish main page