added scene manager and graph

made tem both work properly