edit docs controller