diff --git a/userqueue.admin.inc b/userqueue.admin.inc
index c198458..2b4faa2 100644
--- a/userqueue.admin.inc
+++ b/userqueue.admin.inc
@@ -118,6 +118,7 @@ function userqueue_edit_form($form, &$form_state, $queue) {
     '#type' => 'submit',
     '#value' => t('Save'),
   );
+  
   if (!empty($queue->uqid)) {
     $form['uqid'] = array(
       '#type' => 'hidden',
@@ -128,9 +129,22 @@ function userqueue_edit_form($form, &$form_state, $queue) {
       '#value' => t('Delete'),
     );
   }
+
+    $form['back'] = array(
+	'#type' => 'submit',
+	'#value' => t('Back'),
+	'#submit' =>array('admin_userqueue_go_back'), 
+  );
+	
+
   return $form;
 }
 
+function admin_userqueue_go_back()
+{
+	drupal_goto('/admin/structure/userqueue');
+}
+
 /**
  * Validate/rebuild queue edit form.
  */
diff --git a/userqueue.info b/userqueue.info
index ffc5422..1efbbd9 100644
--- a/userqueue.info
+++ b/userqueue.info
@@ -5,3 +5,10 @@ core = 7.x
 configure = admin/structure/userqueue/settings
 core = "7.x"
 project = "userqueue"
+
+; Information added by Drupal.org packaging script on 2016-07-06
+version = "7.x-1.x-dev"
+core = "7.x"
+project = "userqueue"
+datestamp = "1467810843"
+
diff --git a/userqueue.module b/userqueue.module
index f257b02..6bbaaa2 100644
--- a/userqueue.module
+++ b/userqueue.module
@@ -62,7 +62,25 @@ function userqueue_menu() {
     'file' => 'userqueue.pages.inc',
     'type' => MENU_CALLBACK
   );
-  return $items;
+
+  $items['userqueue/%userqueue/send-to-top/%user'] = array(
+    'page callback' => 'userqueue_admin_send_to_top',
+    'page arguments' => array(1, 3),
+    'access arguments' => array('administer userqueues'),
+    'file' => 'userqueue.pages.inc',
+    'type' => MENU_CALLBACK
+  );
+
+   $items['userqueue/%userqueue/send-to-bottom/%user'] = array(
+    'page callback' => 'userqueue_admin_send_to_bottom',
+    'page arguments' => array(1, 3),
+    'access arguments' => array('administer userqueues'),
+    'file' => 'userqueue.pages.inc',
+    'type' => MENU_CALLBACK
+  );
+ 
+ return $items;
+	
 }
 
 
@@ -147,10 +165,17 @@ function theme_userqueue_arrange_subqueue_form_table($variables) {
         'data' => $counter,
         'class' => array('position')
       );
+
+     $row[] = drupal_render($form[$key]['send_to_top']);
+     $row[] = drupal_render($form[$key]['send_to_bottom']);      
+	//$row[] = l('Send_to_top','home').l('Send_to_bottom','home');
+     	
       $rows[] = array(
         'data' => $row,
         'class' => array('draggable'),
       );
+     
+		
     }
     $counter ++;
   }
@@ -159,7 +184,7 @@ function theme_userqueue_arrange_subqueue_form_table($variables) {
   }
 
   // render the main userqueue table
-  $header = array(t('Title'), t('Created'), t('Position'), array('data' => t('Operations'), 'colspan' => 2), t('Position'));
+  $header = array(t('Title'), t('Created'), t('Position'), array('data' => t('Operations'), 'colspan' => 2), t('Position'),array('data' =>t('Action'),'colspan'=>2));
   $output .= theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => array('id' => array('userqueue-dragdrop'), 'class' => array('userqueue-dragdrop'))));
 
   return $output;
diff --git a/userqueue.pages.inc b/userqueue.pages.inc
index 4663414..878cebb 100644
--- a/userqueue.pages.inc
+++ b/userqueue.pages.inc
@@ -60,6 +60,15 @@ function userqueue_arrange_subqueue_form($form, $form_state, $queue, $users) {
     $form['users'][$account->uid]['remove'] = array(
       '#markup' => l(t('remove'), 'userqueue/' . $queue->uqid . '/remove-user/' . $account->uid, $attr),
     );
+ 
+    $form['users'][$account->uid]['send_to_top'] = array(
+	'#markup' => l(t('send_to_top'),'userqueue/'.$queue->uqid.'/send-to-top/'.$account->uid,$attr),
+    );    	
+
+    $form['users'][$account->uid]['send_to_bottom'] = array(
+	'#markup' => l(t('send_to_bottom'),'userqueue/'.$queue->uqid.'/send-to-bottom/'.$account->uid,$attr),
+    );	
+
   }
 
   // Textfield for adding users to the queue.
@@ -77,12 +86,20 @@ function userqueue_arrange_subqueue_form($form, $form_state, $queue, $users) {
     '#value' => t('Add user'),
     '#submit' => array('userqueue_arrange_subqueue_form_add_submit'),
   );
+
+
   // Submit, reverse, shuffle, and clear actions.
   $form['actions'] = array('#type' => 'actions');
   $form['actions']['submit'] = array(
     '#type' => 'submit',
     '#value' => t('Save'),
   );
+  $form['actions']['back'] = array(
+	'#type' => 'submit',
+	'#value' => t('Back'),
+	'#submit' =>array('admin_userqueue_go_back'), 
+  );
+
   // Disable all buttons if the queue is empty.
   if ($count == 0) {
     $form['actions']['submit']['#disabled'] = TRUE;
@@ -91,6 +108,18 @@ function userqueue_arrange_subqueue_form($form, $form_state, $queue, $users) {
   return $form;
 }
 
+
+/*
+ * Defines action for back button.
+ */
+
+function admin_userqueue_go_back()
+{
+	drupal_goto('/admin/structure/userqueue');
+}
+
+
+
 /**
  * Submit handler, add a new user in the queue.
  */
@@ -203,3 +232,83 @@ function userqueue_save_queue_order($users, $uqid) {
   }
   return drupal_set_message(t('The queue has been updated.'));
 }
+
+
+/*
+ *  Defines action of send_to_top link.
+ */
+
+
+function userqueue_admin_send_to_top($queue, $account)
+{
+	
+	 
+	$query = db_select('userqueue_user')
+	->fields('userqueue_user',array('position'))	
+	->condition('uid', $account->uid,'=')
+        ->condition('uqid', $queue->uqid,'=')	
+	->execute()->fetchAssoc();
+
+	$c = $query['position'];
+			
+	db_update('userqueue_user')    
+	->expression('position','position + :position',array(':position' => '1'))		
+ 	->condition('position',$c,'<')       
+	->condition('uqid', $queue->uqid,'=')
+        ->execute();
+
+	db_update('userqueue_user')    
+	->fields(array('position' => '0'))	
+        ->condition('uid',$account->uid,'=')
+        ->condition('uqid', $queue->uqid,'=')
+        ->execute();
+
+
+	drupal_goto('admin/structure/userqueue');
+
+}
+
+/*
+ *  Defines action of send_to_bottom link.
+ */
+
+
+
+function userqueue_admin_send_to_bottom($queue, $account)
+{
+	 
+	$query = db_select('userqueue_user')
+	->fields('userqueue_user',array('position'))	
+	->condition('uid', $account->uid,'=')
+        ->condition('uqid', $queue->uqid,'=')	
+	->execute()->fetchassoc();
+
+	$c = $query['position'];
+
+	
+
+    	$result = db_select('userqueue_user', 'u')
+            ->fields('u')
+            ->execute();
+    	
+	$d = $result->rowCount();
+
+
+	db_update('userqueue_user')    
+	->expression('position','position - :position',array(':position' => 1))	
+ 	->condition('position', $c,'>')       
+	->condition('uqid', $queue->uqid,'=')
+        ->execute();
+
+	db_update('userqueue_user')    
+	->fields(array('position' => $d-1))	
+        ->condition('uid',$account->uid,'=')
+        ->condition('uqid', $queue->uqid,'=')
+        ->execute();
+	
+
+	drupal_goto($_GET['destination']);
+
+}
+
+
