minor changes to tabs.php to avoid calculations of useless variables