adding event to listen for onBlur to clear typing buffer