Modify index_main

Signed-off-by: 99971005@nccu.edu.tw <99971005@nccu.edu.tw>