TabsWidget is re-implemented to take a tensor and a matrix
instead of a widget.
The new type of exception is added - guiException.