add proper headless toggling