Front end: search function works