adding formautofocus pattern