add stylesheet and query-tree resize code