add autofocus feature to modal forms