Change the content of tab when clicking a link

Im working on my personal sideproject which covering pageants (think like miss universe, miss international but male version)

I used tabbed for starter template…

i put the list of upcoming pageants to cover as media on the right panel.

How to change the link of that tab and content based on the event

The scenerio is like this. Please see illustration.

Maybe when you click a link , the route would be : /event/:id/

then php & mysql will display the data via json.

How to do that? Hope someone could answer the questions… thank you!