diff --git a/includes/media.browser.inc b/includes/media.browser.inc
index 626fc00..5341e93 100644
--- a/includes/media.browser.inc
+++ b/includes/media.browser.inc
@@ -166,6 +166,11 @@ function media_browser($selected = NULL) {
'#markup' => t('Select a file')
);
+ $output['tabset'] = array(
+ '#prefix' => '
',
+ '#suffix' => '
',
+ );
+
$output['tabset']['tabs'] = array(
'#theme' => 'menu_local_tasks',
'#attributes' => array('class' => array('tabs', 'primary')),
diff --git a/templates/media-dialog-page.tpl.php b/templates/media-dialog-page.tpl.php
index f779c1d..33d266a 100644
--- a/templates/media-dialog-page.tpl.php
+++ b/templates/media-dialog-page.tpl.php
@@ -73,19 +73,19 @@