Add SDM elements and update tab indexes.