add autofocus property to modal