made tab selection persistent