Improved the tab clicking as follows:
-If the active tab is clicked, a message is sent to the console and nothing else is done.
-now if you click before the animations finish, the click is ignored.