Fixes broken differentiation between tabs

Fixes bug where it was only possible to switch to most recent tab
by adding an 'id' attribute to each tab which is polled instead
of a variable.