Finish add scene, and  clean the code.