gui: fix ui tabs handling