Finished the UI of index