(mostly) fixed the pop-up css