cleans up views