Smart button closes existing result tab