Fix updating view after programmatic changes

Use timeout to render view after programmatic changes to the model.