perf: only generate list of elements if on elements pages