Passing data to the modal works