diff --git a/modules/Vtiger/dashboards/MiniList.php b/modules/Vtiger/dashboards/MiniList.php
index 69f0f433a46494fa957c66bffd38f159f0bceb52..a4560b2da3b73ab0031c1c6d998eec32bc116ccf 100644
--- a/modules/Vtiger/dashboards/MiniList.php
+++ b/modules/Vtiger/dashboards/MiniList.php
@@ -10,7 +10,8 @@
 
 class Vtiger_MiniList_Dashboard extends Vtiger_IndexAjax_View {
 
-	public function process(Vtiger_Request $request, $widget=NULL) {
+	public function process(Vtiger_Request $request) {
+		$widget = null;
 		$currentUser = Users_Record_Model::getCurrentUserModel();
 		$viewer = $this->getViewer($request);
 		$moduleName = $request->getModule();
diff --git a/modules/Vtiger/dashboards/Notebook.php b/modules/Vtiger/dashboards/Notebook.php
index 460b31dadb9d036205a712140026ee72bfa7a023..a5014655d401d9e0ba7ca4ae391414712f4e32a6 100644
--- a/modules/Vtiger/dashboards/Notebook.php
+++ b/modules/Vtiger/dashboards/Notebook.php
@@ -10,7 +10,8 @@
 
 class Vtiger_Notebook_Dashboard extends Vtiger_IndexAjax_View {
 	
-	public function process(Vtiger_Request $request, $widget=NULL) {
+	public function process(Vtiger_Request $request) {
+		$widget = null;
 		$viewer = $this->getViewer($request);
 		$moduleName = $request->getModule();
 		
@@ -70,4 +71,4 @@ class Vtiger_Notebook_Dashboard extends Vtiger_IndexAjax_View {
 		return $metriclists;
 	}
 	
-}
\ No newline at end of file
+}
diff --git a/modules/Vtiger/views/ShowWidget.php b/modules/Vtiger/views/ShowWidget.php
index fb59dea580d3ff0ce53fe0245380f26d8487297e..3c4a8db4f7272542a105d6b877caba663181b144 100644
--- a/modules/Vtiger/views/ShowWidget.php
+++ b/modules/Vtiger/views/ShowWidget.php
@@ -46,7 +46,8 @@ class Vtiger_ShowWidget_View extends Vtiger_IndexAjax_View {
 					if ($request->has('data')) {
 						$widget->set('data', $request->get('data'));
 					}
-					$widget->add();
+		    		$widget->add();
+		    		$request->set('widgetid', $widget->get('id'));
 				}
 				
 				//Date conversion from user format to database format