probably bugless toggle, properly performs menu functions, lacking comments