Each tab is rendered by its own function. Added two dummy tabs, "Compare" and "Plot". More small geometry tunings.