fixed modal CSS, fixed modal logic, fixed popup effect, minor CSS tweaks