add and edit divisions functions