gui: fix tab selection