introduce lddetail directive to eliminate 4x duplication across teacher and student tabs