updated save controller