diff --git a/src/Form/LatexForm.php b/src/Form/LatexForm.php
index f9a535e..6e6a3db 100755
--- a/src/Form/LatexForm.php
+++ b/src/Form/LatexForm.php
@@ -38,51 +38,43 @@ class LatexForm extends FormBase {
    
   
   public function buildForm(array $form, FormStateInterface $form_state) {
-     
-      $form['latex']['nodeinfo'] = [
-        '#type' => 'entity_autocomplete',
-        '#title'=> t('Node Title'),
-        '#target_type' => 'node',
-         '#suffix' => '<div  id="upd1" name="hello"></div>',
-           '#ajax' => array(
-             'callback' => 'Drupal\latex\Form\LatexForm::updateData',
-             'event' => 'change',
-             ),
-          ];
-        
-         $form['latex']['token_tree'] = array(
-             '#theme' => 'token_tree_link',
-            '#token_types' => array('node'),
-            '#show_restricted' => TRUE,
-          
-           '#weight' => 90,
-        );
-    
-       
-          $text= " \documentclass[12pt]{article}
-              
-               \\title{".$title."}
-                 \author{".$author."}
-                
- 
-               \begin{document}".$body."
-               \\end{document}";
-          
-        
+    $form['latex']['nodeinfo'] = [
+      '#type' => 'entity_autocomplete',
+      '#title'=> t('Node Title'),
+      '#target_type' => 'node',
+       '#suffix' => '<div  id="upd1" name="hello"></div>',
+         '#ajax' => array(
+           'callback' => 'Drupal\latex\Form\LatexForm::updateData',
+           'event' => 'change',
+            'progress' => array(
+              'type' => 'throbber',
+              'message' => 'Loading node...',
+            ),
+           ),
+        ];
+
+    $form['latex']['noad_load'] = array(
+      '#type' => 'button',
+      '#ajax' => array(
+           'callback' => 'Drupal\latex\Form\LatexForm::updateData',
+           'event' => 'click',
+           ),
+      '#value' => t('Load'),
+    );
       
-      $form['submit']['content'] = array(
-        '#type' => 'submit',
-        '#value' => t('submit'),
-        
-        
-      );
+    $form['latex']['token_tree'] = array(
+     '#theme' => 'token_tree_link',
+     '#token_types' => array('node'),
+     '#show_restricted' => TRUE,
+     '#weight' => 90,
+    );
 
-       
-      return $form;
+    $form['submit']['content'] = array(
+      '#type' => 'submit',
+      '#value' => t('Submit'),
+    );
+    return $form;
   }
-  
-  
-  
 
   public function updateData(array $form, FormStateInterface $form_state) {
   
@@ -104,7 +96,7 @@ class LatexForm extends FormBase {
          '#type' => 'textarea',
          '#name' => 'edit',
          '#id' => 'edit-edit',
-         'class' => 'form-textarea resize-vertical',
+         '#attributes' => array('class' => 'form-textarea resize-vertical'),
          '#title' => t('Document'),
          '#value' => strip_tags($text),
         ];
