hide tree type field and expose method instead