Fixed issue with jQuery.each
Fixed up dialog CSS