fix formatting errors in teaching page