Adding edit functionality to goals