Add back event handlers and fix synchronization issues when new project is created.