sometimes we will not have a close button
focusing the first element with 'autofocus' attribute on open