[Fix/Refactor] Fix: Resetting last `lastFilterText_lowerCase` on closing filtering UI
Plus, some refeactoring.