impl pre-input search option
update sample
update readme