updates controller to successfully user factory method