main view cleanup