Changes in attitudes toward education during teacher training