[ui] show/hide cancel input icon