Move set2d and set3d to controller