diff --git a/windowsize.module b/windowsize.module
index 69bf147..ccd53ac 100644
--- a/windowsize.module
+++ b/windowsize.module
@@ -1,17 +1,30 @@
 <?php
+/*
+ * Implements hook_form_alter(). 
+ */
+function windowsize_form_alter(&$form, &$form_state, $form_id) {
+  if ($form_id == 'system_theme_settings') {
+    $form['theme_settings']['toggle_windowsize'] = array(
+    '#type' => 'checkbox', 
+    '#title' => t('Toggle Window Size'), 
+    '#description' => t('Check the box to turn the widget on and make it visible. Uncheck it to hide it.'), 
+    '#default_value' => theme_get_setting('toggle_windowsize'),
+    );
+  }	
+}
 
 /**
  * Implements hook_init().
  */
 function windowsize_init() {
-  if (user_access('view WindowSize')) {
+  if ((user_access('view WindowSize')) && (theme_get_setting('toggle_windowsize') == 1)) {
     drupal_add_js(drupal_get_path('module', 'windowsize') . '/windowsize.js');
     drupal_add_css(drupal_get_path('module', 'windowsize') . '/windowsize.css');
   }
 }
 
 /**
- * Implements hook_perm().
+ * Implements hook_permission().
  */
 function windowsize_permission() {
   return array(
@@ -20,7 +33,7 @@ function windowsize_permission() {
       'description' => t('View the window size box'),
     ),
   );
-}
+} 
 
 
 
