program is now closable
revised pid. widget & query-input must assign pid. added container of querymanager.