creation of level switcher