minor code editing / cleanup
Merge pull request #14 from baoducng/menuBranch

minor code editing / cleanup