fix category selection preservation on edit
implement a minimalistic filter search