disable normal search button when necessary