added edit functionality to csa boxes