Fix issue where submitting search would refresh page