[fix][ui] fix for 2nd input showing after cancelling a query