if sobject is layoutable, then display it