added condition to the search professor, if professor not found, add professor button