Keep widget control's active state in sync with preview

Fixes #3