Rename onBeforeStart to onBeforeEdit