public function add_menu_page()
    {
        extract( $this->config );
        $icon .= '' != $class ? '" class="'.$class : '';
        $icon .= array() != $style ? '" style="'.$this->array_to_css($style) : '';
        $page = $this->config['submenu-pages'][0];
        
        \add_menu_page( 
            $title, 
            $title, 
            $page['capability'], 
            $slug,
            $page['content'],
            $icon,
            $position
        );
        
        if( count($this->config['submenu-pages']) > 1 )
        {
            $this->add_submenu_pages();
        }
    }