refactor CertificateController.php and RequestController.php