add main page courseTree code