reworked lifetimes in core and windowmanager to allow for boxed layouts