move styles and query-tree resizing into teleturn