Modying the menu behaviour for it to display correcly on mobil devices