add directive to autofocus