Refs #7987, move 'X' button in dialog