misc fixes
tweaks to modal to help cope with mobiel safari bug