added search and  gen input form