added autofocus using focus directive.