Some refactoring of updateTab() function. Disabling some unimplemented buttons. This was SVN commit r6418.