Fixed bug with some of the toggle functions not working after the refactor because I forgot to return the value in the new get_xml function.