caleaned up the main view