controller and view for definition types