rename onUp function to on onSearch