fix issue with more info not popping the modal - need to move out the js code to index and each dialog needs to have their own unique id. #2
use rails debug to make the print out of the hash prettier #1
loop with index and use it instead for the more info instad of auth id has sometimes this is missing #2