Fixes multiple tab bug (issue #16)

Hi,

This is a pull request to fix this multiple tab bug.
Basically, it just uses the context to update the correct tab content.