updates profile controller