Adding TreeMenu template.

Refactoring AccoridanMenu template.