rendering block menu as tree