cleaned up edit_milestone code somewhat