Move default attributes for confirm dialogue to open function