* define attr active_fn
* use attr active_fn instead of last_active_fn.. because last_active_fn is not synced with unsaved views
* make sure we're syncing with the actual active_view and not some widget's view