table selector with category filtering (with bugs)