ui: Fix search button logic

Commit 60331c40535c95950274984d89177643df5686db broke the search button
logic. This patch returns the same refresh logic that was next to the
current changes.

Change-Id: Ia86fa287a050e030d28ab96eeecfb888dd1cb22b
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1165669
Signed-off-by: Yaniv Bronhaim <ybronhei@redhat.com>