Adding tab index to allow escape key to close the dialog