Remove whitespace; Use attributes map to check id/name
Close dialog after prompt