more dev changes
diff --git a/build.js b/build.js
index bd34d0c..a31f78d 100644
--- a/build.js
+++ b/build.js
@@ -82,14 +82,20 @@
 
     //Copy www
     ncp("www", "build", function () {
-        //If dev, copy JS files without minifying
         if (dev) {
-            fs.copyFileSync("init.js", "build/init.js");
-            ncp("scripts", "build/scripts", function () {
-                console.log("[2/3] Done");
-                generateDocs();
+            //Copy dev assets
+            ncp("www/dev", "build", function () {
+                //Copy JS without minification
+                fs.copyFileSync("init.js", "build/init.js");
+                ncp("scripts", "build/scripts", function () {
+                    console.log("[2/3] Done");
+                    generateDocs();
+                });
             });
         } else {
+            //Remove dev assets for stable build
+            rimraf.sync("./build/dev/*");
+
             console.log("[2/3] Done");
             generateDocs();
         }
@@ -104,7 +110,10 @@
     mkdirp.sync("./build/docs");
 
     //Generate docs
-    var cp = exec("node ./node_modules/jsdoc/jsdoc.js -r scripts -d ./build/docs -c ./docs/jsdoc.conf.json -t ./node_modules/foodoc/template -R ./docs/README.md", function (e, o) {
+    var docConf = "./docs/jsdoc.conf.json";
+    if (dev) docConf = "./docs/jsdoc.dev.conf.json";
+
+    var cp = exec("node ./node_modules/jsdoc/jsdoc.js -r scripts -d ./build/docs -c " + docConf + " -t ./node_modules/foodoc/template -R ./docs/README.md", function (e, o) {
         if (e) console.error(e);
         if (o) console.log(o);
     });
diff --git a/docs/jsdoc.dev.conf.json b/docs/jsdoc.dev.conf.json
new file mode 100644
index 0000000..0fe5da9
--- /dev/null
+++ b/docs/jsdoc.dev.conf.json
@@ -0,0 +1,13 @@
+{
+    "sourceType": "script",
+    "templates": {
+        "systemName": "Power+ (dev)",
+        "systemSummary": "Reference documentation for the latest version of Power+ (dev)",
+        "systemLogo": "./www/dev/favicon.png",
+        "systemColor": "#c5982f",
+        "copyright": "(c) 2018-2020 jottocraft. All rights reserved.",
+        "favicon": "./www/dev/favicon.png",
+        "collapseSymbols": false,
+        "footer": "<img style='height: 32px; margin: 10px 0px;' src='https://cdn.jottocraft.com/images/footerImage.png' />"
+    }
+}
\ No newline at end of file
diff --git a/scripts/core.js b/scripts/core.js
index 12023e2..b9da6b6 100644
--- a/scripts/core.js
+++ b/scripts/core.js
@@ -1617,6 +1617,8 @@
     var course = dtps.selectedClass == "dash" ? "dash" : dtps.classes[dtps.selectedClass];
     var icon = null;
     var error = false;
+    var autoType = null;
+    var autoCourse = dtps.selectedClass == "dash" ? "dash" : dtps.classes[dtps.selectedClass];
 
     //Get automatic type from selected content
     if (dtps.selectedContent == "people") type = "people";
@@ -1624,15 +1626,13 @@
     if (dtps.selectedContent == "pages") type = "pages";
     if (dtps.selectedContent == "grades") type = "grades";
     if ((dtps.selectedClass == "dash") || (dtps.selectedContent == "stream") || (dtps.selectedContent == "moduleStream")) type = "coursework";
-
-    //If search is open, reuse existing context
+    autoType = type;   
+    
+    //Reuse auto type if on search
     if (dtps.selectedClass == "search") {
-        type = $("#dtpsMainSearchBox").attr("data-search-type");
-        course = $("#dtpsMainSearchBox").attr("data-dtps-course");
-
-        if (!isNaN(Number(course))) {
-            course = dtps.classes[Number(course)];
-        }
+        type = $("#dtpsMainSearchBox").attr("data-ctx-type");
+        course = $("#dtpsMainSearchBox").attr("data-ctx-course");
+        if (!isNaN(Number(course))) course = dtps.classes[course];
     }
 
     //Check for type override from search box
@@ -1701,6 +1701,12 @@
         $("#dtpsMainSearchBox").attr("data-dtps-course", course.num);
         $("#dtpsMainSearchBox").attr("data-search-type", type);
     }
+
+    //Set auto type
+    if (dtps.selectedClass !== "search") {
+        $("#dtpsMainSearchBox").attr("data-ctx-type", autoType);
+        $("#dtpsMainSearchBox").attr("data-ctx-course", autoCourse.num);
+    }
 }
 
 /**
diff --git a/www/dev/favicon.png b/www/dev/favicon.png
new file mode 100644
index 0000000..a721446
--- /dev/null
+++ b/www/dev/favicon.png
Binary files differ
diff --git a/www/dev/icon.png b/www/dev/icon.png
new file mode 100644
index 0000000..438390f
--- /dev/null
+++ b/www/dev/icon.png
Binary files differ
diff --git a/www/dev/icon.svg b/www/dev/icon.svg
new file mode 100644
index 0000000..ed4c55c
--- /dev/null
+++ b/www/dev/icon.svg
@@ -0,0 +1,156 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   fill="#1a1a1a"
+   version="1.1"
+   viewBox="8 0 65.539238 65.539238"
+   x="0px"
+   y="0px"
+   id="svg6"
+   sodipodi:docname="icon.svg"
+   width="65.539238"
+   height="65.539238"
+   inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)">
+  <metadata
+     id="metadata12">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title>book-bookmark</dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <defs
+     id="defs10">
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient841">
+      <stop
+         style="stop-color:#e3ba4b;stop-opacity:1"
+         offset="0"
+         id="stop837" />
+      <stop
+         style="stop-color:#f5c669;stop-opacity:1"
+         offset="1"
+         id="stop839" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient841"
+       id="linearGradient843"
+       x1="7.0668874"
+       y1="-1.5925453"
+       x2="57.066414"
+       y2="65.191643"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="translate(0.5,0.5)" />
+    <filter
+       inkscape:collect="always"
+       style="color-interpolation-filters:sRGB"
+       id="filter868"
+       x="-3.0945816e-05"
+       width="1.0000619"
+       y="-7.1521802e-05"
+       height="1.000143">
+      <feGaussianBlur
+         inkscape:collect="always"
+         stdDeviation="0.000380943"
+         id="feGaussianBlur870" />
+    </filter>
+    <filter
+       style="color-interpolation-filters:sRGB;"
+       inkscape:label="Drop Shadow"
+       id="filter1067">
+      <feFlood
+         flood-opacity="0.101961"
+         flood-color="rgb(0,0,0)"
+         result="flood"
+         id="feFlood1057" />
+      <feComposite
+         in="flood"
+         in2="SourceGraphic"
+         operator="in"
+         result="composite1"
+         id="feComposite1059" />
+      <feGaussianBlur
+         in="composite1"
+         stdDeviation="5"
+         result="blur"
+         id="feGaussianBlur1061" />
+      <feOffset
+         dx="0"
+         dy="0"
+         result="offset"
+         id="feOffset1063" />
+      <feComposite
+         in="SourceGraphic"
+         in2="offset"
+         operator="over"
+         result="composite2"
+         id="feComposite1065" />
+    </filter>
+  </defs>
+  <sodipodi:namedview
+     inkscape:document-rotation="0"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="1368"
+     inkscape:window-height="850"
+     id="namedview8"
+     showgrid="false"
+     fit-margin-top="0"
+     fit-margin-left="0"
+     fit-margin-right="0"
+     fit-margin-bottom="0"
+     inkscape:zoom="7.501776"
+     inkscape:cx="44.202617"
+     inkscape:cy="29.114264"
+     inkscape:window-x="-6"
+     inkscape:window-y="-6"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="svg6" />
+  <title
+     id="title2">book-bookmark</title>
+  <path
+     d="M 13.833,0.5 C 10.887,0.5 8.5,2.9 8.5,5.833 v 48 c 0,2.933 2.388,5.333 5.333,5.333 h 5.333 v 5.333 l 6.667,-5.333 6.667,5.333 v -5.333 h 18.667 c 2.947,0 5.333,-2.4 5.333,-5.333 v -2.667 c 0,2.933 -2.387,5.333 -5.333,5.333 H 32.5 V 51.166 H 19.167 v 5.333 h -4 c -2.209,0 -4,-1.867 -4,-4 0,-2.4 1.791,-4 4,-4 h 36 c 2.947,0 5.333,-2.4 5.333,-5.333 V 5.833 C 56.5,2.9 54.113,0.5 51.167,0.5 H 13.834 Z"
+     id="path4"
+     style="fill:url(#linearGradient843);fill-opacity:1;stroke:#daaf3c;stroke-opacity:1" />
+  <g
+     id="g1055"
+     transform="translate(-0.65899277,2.9839058)"
+     style="filter:url(#filter1067)">
+    <rect
+       style="fill:#e0983c;fill-opacity:1;fill-rule:evenodd;stroke:#d18b33;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       id="rect27"
+       width="44.584309"
+       height="21.302441"
+       x="29.113922"
+       y="19.134493"
+       rx="4" />
+    <g
+       style="fill:#000000;filter:url(#filter868)"
+       id="g25"
+       transform="matrix(1.3966078,0,0,1.3966078,103.70934,34.232945)">
+      <path
+         d="m -47.428217,-9.57581 -4.545,5.682 c -0.332,0.414 -0.332,1.005 0,1.419 l 4.545,5.682 1.775,-1.421 -3.978,-4.971 3.978,-4.972 z m 19.956,0 -1.775,1.419 3.978,4.972 -3.978,4.972 1.775,1.419 4.545,-5.682 c 0.332,-0.414 0.332,-1.005 0,-1.419 z m -7.544,0.124 -6.82,11.362 1.949,1.169 6.819,-11.362 z"
+         id="path14"
+         style="fill:#ffffff;fill-opacity:1" />
+    </g>
+  </g>
+</svg>
diff --git a/www/dev/index.html b/www/dev/index.html
new file mode 100644
index 0000000..554be81
--- /dev/null
+++ b/www/dev/index.html
@@ -0,0 +1,166 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+
+    <link rel="shortcut icon" href="/favicon.png" type="image/png">
+
+    <link href="https://fonts.googleapis.com/icon?family=Material+Icons+Extended" rel="stylesheet">
+    <link type="text/css" rel="stylesheet" href="https://cdn.jottocraft.com/fluid/v4.min.css"
+        media="screen,projection" />
+
+    <!--OpenGraph -->
+    <meta property="og:url" content="https://powerplus.app" />
+    <meta property="og:title" content="Power+" />
+    <meta property="og:description" content="A better UI for Canvas LMS" />
+    <meta property="og:image" content="https://powerplus.app/logo.png" />
+
+    <title>Power+</title>
+
+    <meta charset="utf-8">
+    <meta name="description" content="A better UI for Canvas LMS">
+    <meta name="author" content="jottocraft">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+
+    <script async src="https://cdn.jottocraft.com/fluid/assets/tinycolor.js"></script>
+    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
+    <script src="https://cdn.jottocraft.com/fluid/v4.min.js"></script>
+
+    <style>
+        /* Header */
+        #header {
+            color: var(--elementText);
+            padding: 100px;
+            padding-bottom: 120px;
+            text-align: center;
+        }
+
+        #header h1 {
+            display: inline-block;
+            vertical-align: middle;
+        }
+
+        .title img {
+            height: 98px;
+            vertical-align: middle;
+            margin-right: 22px;
+        }
+
+        #header .title {
+            margin-bottom: 40px;
+        }
+
+        /* Content Blocks */
+        .block {
+            overflow: hidden;
+            margin-bottom: 200px;
+        }
+
+        .container .block .description>*:nth-child(1) {
+            margin-top: 0px;
+        }
+
+        .container .block .description>*:nth-last-child(1) {
+            margin-bottom: 0px;
+        }
+
+        .container .block .description p {
+            font-size: 20px;
+            color: var(--lightText);
+        }
+
+        /* Large content blocks */
+        .container .block:not(.small)>img {
+            width: 28%;
+            max-width: 250px;
+        }
+
+        .container .block:not(.small)>.description {
+            overflow: hidden;
+        }
+
+        .container .block:not(.small):nth-child(odd)>img,
+        .container .block.left:not(.small):nth-child(even)>img {
+            float: left;
+            margin-right: 48px;
+            margin-left: 0;
+        }
+
+        .container .block:not(.small):nth-child(even)>img,
+        .container .block.right:not(.small):nth-child(odd)>img {
+            float: right;
+            margin-left: 48px;
+            margin-right: 0;
+        }
+
+        .container .block:not(.small) .description h3 {
+            font-size: 2.6rem;
+        }
+
+        /* Small content blocks */
+        .container .block.small .description h3 {
+            font-size: 2.2rem;
+        }
+
+        .container .block.small {
+            text-align: center;
+            display: inline-block;
+        }
+
+        .container .block.small img {
+            height: 150px;
+            margin-bottom: 20px;
+        }
+    </style>
+</head>
+
+
+<body>
+    <div id="header">
+        <div class="content">
+            <div class="title">
+                <img src="/icon.svg" />
+                <h1>Power+ (dev)</h1>
+            </div>
+            <div class="row">
+                <button
+                    onclick="fluid.alert('Send Feedback', 'Email [email protected] to send feedback about Power+ (dev)', 'email')"
+                    class="btn"><i class="material-icons">feedback</i> Send Feedback</button>
+                <button onclick="window.location.href = 'https://github.com/jottocraft/dtps/issues/new';" class="btn"><i
+                        class="material-icons">bug_report</i> Report a bug</button>
+                <button onclick="window.location.href = '/docs';" class="btn outline"><i
+                        class="material-icons">article</i> Documentation</button>
+                <button class="btn outline"
+                    onclick="window.location.href = 'https://github.com/jottocraft/dtps/tree/dev';"><i
+                        class="material-icons">code</i> Source code</button>
+            </div>
+        </div>
+    </div>
+
+    <div class="container">
+        <div style="background: var(--elements); padding: 40px; border-radius: var(--cardRadius);" class="block left">
+            <img src="assets/dev.svg" />
+            <div class="description">
+                <h3>Development Status</h3>
+                <p>Active feature development - v3.1.0 (scheduled for stable release in January 2021)</p>
+                <span>To start using the dev version of Power+, visit Settings -> About -> Advanced Options and
+                    select "Test prerelease versions". Then, navigate to Settings -> Prerelease testing and select
+                    "Dev". Once you've done that, just reload Power+ to load the dev version. Keep in mind that the
+                    dev version uses the latest, often untested, code and can completely break. Use the dev version
+                    at your own risk.</span>
+            </div>
+        </div>
+    </div>
+
+    <div style="text-align: center; padding-bottom: 50px;">
+        <img style="height: 45px; margin-right: 20px; vertical-align: middle;"
+            src="https://cdn.jottocraft.com/images/footerImage.png" />
+        <h5 style="display: inline-block; vertical-align: middle;">jottocraft</h5>
+        <p>(c) jottocraft 2018-2020. All rights reserved.&nbsp;&nbsp;<a href="https://github.com/jottocraft/dtps">source
+                code</a>&nbsp;&nbsp;<a href="https://github.com/jottocraft/dtps/blob/main/LICENSE">license</a></p>
+    </div>
+
+
+</body>
+
+</html>
\ No newline at end of file
diff --git a/www/dev/logo.png b/www/dev/logo.png
new file mode 100644
index 0000000..30085fe
--- /dev/null
+++ b/www/dev/logo.png
Binary files differ
diff --git a/www/index.html b/www/index.html
index ee8f8b1..8bab87e 100644
--- a/www/index.html
+++ b/www/index.html
@@ -28,7 +28,7 @@
 
     <style>
         /* Header */
-        #header, #devHeader {
+        #header {
             color: var(--elementText);
             padding: 100px;
             padding-bottom: 120px;
@@ -36,7 +36,7 @@
             text-align: center;
         }
 
-        #header h1, #devHeader h1 {
+        #header h1 {
             display: inline-block;
             vertical-align: middle;
         }
@@ -47,14 +47,10 @@
             margin-right: 22px;
         }
 
-        #header .title, #devHeader .title {
+        #header .title {
             margin-bottom: 40px;
         }
 
-        #devHeader {
-            margin-bottom: 0px;
-        }
-
         /* Content Blocks */
         .block {
             overflow: hidden;
@@ -129,10 +125,6 @@
                     $("#dtpsInstallBtn").attr("onclick", "window.location.href = 'https://powerplus.app/firefox.xpi';");
                 }
             }
-            if ((window.location.host == "dev.dtps.jottocraft.com") || (window.location.host == "localhost:2750")) {
-                $("#devContainer, #devHeader").show();
-                $("#header").hide();
-            }
         })
     </script>
 
@@ -154,45 +146,7 @@
         </div>
     </div>
 
-    <div id="devHeader" style="display: none;">
-        <div class="content">
-            <div class="title">
-                <img src="/icon.svg" />
-                <h1>Power+ (dev)</h1>
-            </div>
-            <div class="row">
-                <button
-                    onclick="fluid.alert('Send Feedback', 'Email [email protected] to send feedback about Power+ (dev)', 'email')"
-                    class="btn"><i class="material-icons">feedback</i> Send Feedback</button>
-                <button
-                    onclick="window.location.href = 'https://github.com/jottocraft/dtps/issues/new';"
-                    class="btn"><i class="material-icons">bug_report</i> Report a bug</button>
-                <button
-                    onclick="window.location.href = '/docs';"
-                    class="btn outline"><i class="material-icons">article</i> Documentation</button>
-                <button class="btn outline" onclick="window.location.href = 'https://github.com/jottocraft/dtps/tree/dev';"><i
-                        class="material-icons">code</i> Source code</button>
-            </div>
-        </div>
-    </div>
-
     <div class="container">
-        <div id="devContainer" style="display: none;">
-            <div style="background: var(--elements); padding: 40px; border-radius: var(--cardRadius);"
-                class="block left">
-                <img src="assets/dev.svg" />
-                <div class="description">
-                    <h3>Development Status</h3>
-                    <p>Active feature development - v3.1.0 (scheduled for stable release in January 2021)</p>
-                    <span>To start using the dev version of Power+, visit Settings -> About -> Advanced Options and
-                        select "Test prerelease versions". Then, navigate to Settings -> Prerelease testing and select
-                        "Dev". Once you've done that, just reload Power+ to load the dev version. Keep in mind that the
-                        dev version uses the latest, often untested, code and can completely break. Use the dev version
-                        at your own risk.</span>
-                </div>
-            </div>
-        </div>
-
         <div class="row">
             <div class="block small six columns">
                 <img src="assets/todo.svg" />
@@ -219,7 +173,7 @@
                     <li>Power+ does not collect any personal information</li>
                     <li>Power+ gets data directly from Canvas to your computer without being processed by a Power+
                         server or a 3rd party</li>
-                    <li>CBL Grades are calculated on-device</li>
+                    <li>Grades are calculated on-device</li>
                     <li>Prefrences and grade history are stored on-device</li>
                     <li>Power+'s code is open-source and hosted directly from <a
                             href="https://github.com/jottocraft/dtps">GitHub</a></li>
diff --git a/www/white.png b/www/white.png
deleted file mode 100644
index e669199..0000000
--- a/www/white.png
+++ /dev/null
Binary files differ
diff --git a/www/whiteOutline.png b/www/whiteOutline.png
deleted file mode 100644
index e669199..0000000
--- a/www/whiteOutline.png
+++ /dev/null
Binary files differ