Added tab object as an arg to the deactivate callback