Add edit implementation for periods
Add config and transaction