Adapting to online and blended learning in higher education