Teachers, students adapt to e-learning