make sure searching doesn't accidentally submit a document