add more global vars from CUI
rm old code
move new modal styling here