several remakes / adds

add comments to popup.js
change modal to be more consistent