?>
				</p>


			</form>
		</div>
	<?php 
} else {
    // show account overview:
    $myListTable = new SupportHubExtraList();
    $myListTable->set_columns(array('product_name' => __('Product Name', 'support_hub'), 'edit_link' => __('Action', 'support_hub')));
    $product_details = SupportHub::getInstance()->get_products();
    foreach ($product_details as $product_detail_id => $product_detail) {
        $product_details[$product_detail_id]['edit_link'] = '<a href="?page=' . esc_attr($_GET['page']) . '&tab=' . esc_attr($_GET['tab']) . '&shub_product_id=' . $product_detail['shub_product_id'] . '">' . __('Edit', 'support_hub') . '</a>';
    }
    $myListTable->set_data($product_details);
    $myListTable->prepare_items();
    ?>
	<div class="wrap">
		<h2>
			<?php 
    _e('Product Details', 'support_hub');
    ?>
			<a href="?page=<?php 
    echo esc_attr($_GET['page']);
    ?>
&tab=<?php 
    echo esc_attr($_GET['tab']);
    ?>
&shub_product_id=new" class="add-new-h2"><?php 
    _e('Add New', 'support_hub');
    ?>
				</p>


			</form>
		</div>
	<?php 
} else {
    // show account overview:
    $myListTable = new SupportHubExtraList();
    $myListTable->set_columns(array('extra_name' => __('Extra Name', 'support_hub'), 'extra_description' => __('Extra Description', 'support_hub'), 'edit_link' => __('Action', 'support_hub')));
    $extra_details = $shub_extra->get_all_extras();
    foreach ($extra_details as $extra_detail_id => $extra_detail) {
        $extra_details[$extra_detail_id]->edit_link = '<a href="' . $extra_detail->link_edit() . '">' . __('Edit', 'support_hub') . '</a>';
    }
    $myListTable->set_data($extra_details);
    $myListTable->prepare_items();
    ?>
	<div class="wrap">
		<h2>
			<?php 
    _e('Extra Details', 'support_hub');
    ?>
			<a href="?page=<?php 
    echo esc_attr($_GET['page']);
    ?>
&tab=<?php 
    echo esc_attr($_GET['tab']);
    ?>
&shub_extra_id=new" class="add-new-h2"><?php 
    _e('Add New', 'support_hub');