fixed problems in subpages and searchtree