added ajax for teacher data