send input and focus when dom is sent