add search filtering. fix category default form values and add default category on save if category does not exist