Add client side logic for updating profile