update indices and add stretch to ui tab