tweaks to popup code, and give buttons a hover and active state