deactivate function was implemented

A function that deactivates a tab given its numeric reference was added to the plugin.