dynamically adds or removes handles if model changes