adding index to ui