create and update milestones