using controller for init