edit functionality for allotments
update js callback for periods