sending rule name to rest from search input box