edited .focus() to autofocus