search clears before each submit