add register scene and layer.