scheduledialog: fix for selecting the correct tab