Replace var "disp" attribute with "type"