add another constructor to set dialogType by default