when you have 4k+ categories manipulating DOM becomes very slow clone the list and manipulate it outside of DOM, replace list on DOM when search is done add utils.debounce so list is updated slower