GUI search function works