chgs to app_ctlr code in generator