Update user interface and api call