simplified a demo controller