cleaning up main view