Add profile update function on client side