Issue #36: added widget listeners; also, addressed issue #39