Pass search input as an arg to api

Signed-off-by: Kaustav Das Modak <kaustav.dasmodak@yahoo.co.in>
Add extra UI cleanup for reset

Signed-off-by: Kaustav Das Modak <kaustav.dasmodak@yahoo.co.in>