added singleton to rootcontroller