successfully  passed in months array to controller