perf(view): use a linked list instead of list.indexOf