A Comparison of face-to-face and online learning environments to prepare teachers to use technology