passing the values of the selects to the modal