commented out the modal dialogs, these seem to be just for the blueimp's image gallery project