refactor create_tab to use class and fix guide.php tab functionality for new tabs