teacher window debugged

but still couldn't add mored