Updating data model and UI