fix the Main View