add a max display function for menu.jsp, can control how many submenu
allow to display