update student and teacher ajax