Creating criterias in a modal.