Adopts UI demo to new API.