clear project after logout & enhance cubeEdit init func

clear project after logout & enhance cubeEdit init func