adjusts type of search input