update ui of index