update result of search teacher function in class page