diff --git a/js/profile.js b/js/profile.js
index bfbd93c7257b40388a71643adafd462eaa175625..91dffb11ad5b3b6a14a2bf48d6f072f3db42ae9d 100644
--- a/js/profile.js
+++ b/js/profile.js
@@ -42,6 +42,11 @@ function getUserProfile(){
                 singleList.innerHTML = loc;
                 listOfLocation.appendChild(singleList);
             }
+            //display preferred location if driver
+            if(isDriver == 0){
+                document.getElementById('preferred-location').style.display = 'none';
+                document.getElementById('user-location').style.display = 'none';
+            }
         }
     };
     xmlhttp.open('GET', '../controller/profile.php?id=' + id, true);
diff --git a/view/dashboard.php b/view/dashboard.php
index 98c44fe2de75215571de6c94eacd9259b5d9f6b8..f6c82e3fc80f9c3423315ab2b02e4fa3a34dd965 100644
--- a/view/dashboard.php
+++ b/view/dashboard.php
@@ -62,10 +62,10 @@
                 <img src="../img/mail.png" /><div id="email"></div><br />
                 <img src="../img/phone.png" /><div id="phone"></div><br />
             </div>
-            <div class="sub-header">
+            <div class="sub-header" id="preferred-location">
                 <div class="sub-header-heading"><h1>PREFERRED LOCATION</h1></div>
                 <div class="edit-icon">
-                    <a href="../view/edit-prefered-locations.html"><img src="../img/pencil.png" /></a>
+                    <a href="../view/edit-prefered-locations.php"><img src="../img/pencil.png" /></a>
                 </div>
             </div>
             <div class="user-location"><ul id="user-location"></ul></div>