Added events and refined project_edit.