#372 Fix issue where more then one tab shows as selected