add error handling to search option 3 in ui