adding option to search by text input