Search working accordingly with modal checkboxes