changed from custom directive to html autofocus