is there a better way to do this? maybe have an `activateTab` method?