B2019-043 Added checks for being in design mode during initialization of variables. Also needed to remove the parameter from the constructor