Autofocus and clear inputs