updated formatting of menu to properly transition to small mode from medium and large