diff --git a/src/Form/ModalForm.php b/src/Form/ModalForm.php
index 9b637e3..9ba05a1 100644
--- a/src/Form/ModalForm.php
+++ b/src/Form/ModalForm.php
@@ -8,6 +8,8 @@ use Drupal\Core\Entity\EntityRepositoryInterface;
 use Drupal\Core\Form\FormStateInterface;
 use Drupal\Core\Messenger\MessengerInterface;
 use Symfony\Component\DependencyInjection\ContainerInterface;
+use Drupal\Component\Datetime\TimeInterface;
+use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
 
 /**
  * Form controller for Modal edit forms.
@@ -23,11 +25,18 @@ class ModalForm extends ContentEntityForm {
   protected $entityRepository;
 
   /**
-   * The account interface.
+   * The entity type bundle info service.
    *
-   * @var \Drupal\Core\Session\AccountInterface
+   * @var \Drupal\Core\Entity\EntityTypeBundleInfoInterface
    */
-  protected $account;
+  protected $entityTypeBundleInfo;
+
+  /**
+   * The time service.
+   *
+   * @var \Drupal\Component\Datetime\TimeInterface
+   */
+  protected $time;
 
   /**
    * The messanger interface.
@@ -39,11 +48,11 @@ class ModalForm extends ContentEntityForm {
   /**
    * Class constructor.
    */
-  public function __construct(EntityRepositoryInterface $entityRepository, AccountInterface $account, MessengerInterface $messenger) {
-    parent::__construct($entityRepository);
+  public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info, TimeInterface $time) {
+    parent::__construct($entity_repository, $entity_type_bundle_info, $time);
 
-    $this->account = $account;
-    $this->messenger = $messenger;
+    $this->entityTypeBundleInfo = $entity_type_bundle_info;
+    $this->time = $time;
   }
 
   /**
@@ -54,8 +63,8 @@ class ModalForm extends ContentEntityForm {
     return new static(
       // Load the service required to construct this class.
       $container->get('entity.repository'),
-      $container->get('current_user'),
-      $container->get('messenger')
+      $container->get('entity_type.bundle.info'),
+      $container->get('datetime.time')
     );
   }
 
@@ -98,7 +107,7 @@ class ModalForm extends ContentEntityForm {
 
     $status = parent::save($form, $form_state);
 
-    switch ($status) {
+    switch ($status) {  
       case SAVED_NEW:
         $this->messenger->addMessage($this->t('Created the %label Modal.', [
           '%label' => $entity->label(),
