Use var for searchinput in reset

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