refactored tab selection variables into json properties