read and change mode for every template are ready