Use boolean primitive instead of object
API to remove controls