updating profile controller