set correct class for CRUDElement