Updated edit and added editTender as private function