Students, teachers opting for online schools