Added activateTab in the end of click handler.