working on widgets' collapsing