fixed issues with popup on smaller screens.