Cleans up main view