fix issue where cancel button showed up if multiple search boxes were on the page