change event hook to set project root whenever a new project is created.