fixed some bugs with deleting, + show and search of matches