renamed and added function and controller name to this array