Added dynamic sizing of the menu items.