<?php
    $default_tab = null;
    $tab = isset($_GET['tab']) ? $_GET['tab'] : $default_tab;
?>
<div class="wrap">
    <!-- Here are our tabs -->
    <nav class="nav-tab-wrapper">
        <a href="?page=ib-rfw" class="nav-tab <?php if($tab===null):?>nav-tab-active<?php endif; ?>">Our Products </a>
        <a href="?page=ib-rfw&tab=default"
            class="nav-tab <?php if($tab==='default'):?>nav-tab-active<?php endif; ?>">Plugin
            Information</a>
    </nav>


    <div class="tab-content">
        <?php switch($tab) :
        case 'default':                
                require_once plugin_dir_path( __FILE__ )."/rfw-default.php";
                break;
          default:
                 require_once plugin_dir_path(__FILE__).'/our-products.php';
            break;
        endswitch; ?>
    </div>
</div>