toggle display mode working