connect ui to api update