search and input now work