changed the layout of the menubar in device mode