move macList from controller to model