Testign what happens if I put the modal instance var inside the  function. Jajajaj