Added maxDisplayItems, to limit height of menu and scroll menu if too many items