change object to class for do managed controller