diff --git a/includes/forms.inc b/includes/forms.inc
index 860c78e..233e3ec 100644
--- a/includes/forms.inc
+++ b/includes/forms.inc
@@ -123,8 +123,8 @@ function quant_time_form_submit(&$form, &$form_state) {
   // Add a query to the URL which will be used to determine the query
   switch ($form_state['values']['option']) {
     case 'period':
-      drupal_goto(
-        'analytics', 
+      $form_state['redirect'] = array(
+        current_path(),
         array(
           'query' => array(
             'option' => 'period',
@@ -135,8 +135,8 @@ function quant_time_form_submit(&$form, &$form_state) {
       break;
     
     case 'custom':
-      drupal_goto(
-        'analytics', 
+      $form_state['redirect'] = array(
+        current_path(),
         array(
           'query' => array(
             'option' => 'custom',
