Modified mainGui to handle the proper math gui elements