New law expands e-learning flexibility statewide