Remove searchArray function.
Fix selecting of input.