Handle UI for index

- Handle UI for index.