adding duration display to teacher and student tabs