controller replace docs