added autofocus for modals